<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="/static/css/bootstrap.min.css">
<title>Hello 这个世界</title>
<script src="/static/js/bootstrap.min.js"></script>
<script src="/static/js/jquery-3.4.1.min.js"></script>
<script src="/static/js/popper.min.js"></script>
</head>
<body>
<div class="container">
  <div class="row justify-content-center">
  <div class="col-6"><h1>Spring Boot 我来了！！！</h1></div>
  </div>
  <div>
  <div class="row justify-content-center">
  <div class="col-10">
  <table class="table table-striped">
    <thead>
      <tr>
        <th scope="col">序号</th>
        <th scope="col">账户名</th>
        <th scope="col">姓名</th>
        <th scope="col">部门</th>
        <th scope="col">地址</th>
        <th scope="col">联系电话</th>
      </tr>
    </thead>
    <tbody>
      <c:forEach items="${persons}" var="person">
        <tr>
          <th scope="row">${person.id}</th>
          <td>${person.name}</td>
          <td>${person.chineseName}</td>
          <td>${person.department}</td>
          <td>${person.address}</td>
          <td>${person.phone}</td>
        </tr>
      </c:forEach>
    </tbody>
  </table></div>
  </div>
  </div>
</div>
</body>
</html>